
var valeurDepart = -200;

var positiondepart="oui";
var mydivavis = document.getElementById('modulequestionfixe');

mydivavis.style.bottom = valeurDepart+"px";
mydivavis.style.height = -valeurDepart+20+"px";

var valeur = valeurDepart;



function fSort()
{
	if(valeur<0)
	{
		valeur = valeur + 10;
		mydivavis.style.bottom = valeur+"px";
		sort();
	}
}

function sort()
{

	vitesseDeplacement=1;
	if(positiondepart=="oui")
	{
		sortir=setTimeout("fSort()",vitesseDeplacement);
	}
	else
	{
		clearTimeout(rentrer); 
		sortir=setTimeout("fSort()",vitesseDeplacement);
		positiondepart="oui";
	}
}


function fRentre()
{
	if(valeur>valeurDepart)
	{
		valeur = valeur - 10;
		mydivavis.style.bottom = valeur+"px";
		rentre();
	}
}


function rentre()
{
	
	clearTimeout(sortir); 
	vitesseRange=1;
	rentrer=setTimeout("fRentre()",vitesseRange);
	positiondepart="non";
}

addEvent(mydivavis,"mouseover",function(e)
{
	sort();
});
addEvent(mydivavis,"mouseout",function(e)
{
	rentre();
});



function addEvent(el, event, func) 
{
	if(el.addEventListener) 
	{ 
		el.addEventListener(event, func, false);
	}
	else 
	{ 
		el.attachEvent('on'+event, func);
	}
}

